$OpenBSD: patch-src_impex_CMakeLists_txt,v 1.1.1.1 2016/11/24 08:10:01 kirby Exp $
--- src/impex/CMakeLists.txt.orig	Thu Mar 17 13:22:21 2016
+++ src/impex/CMakeLists.txt	Fri Nov 11 13:30:56 2016
@@ -28,6 +28,15 @@ IF(HDF5_FOUND)
   INCLUDE_DIRECTORIES(${SUPPRESS_WARNINGS} ${HDF5_INCLUDE_DIR})
 ENDIF(HDF5_FOUND)
 
+IF(FFTW3_FOUND)
+  ADD_DEFINITIONS(-DhasFFTW)
+  INCLUDE_DIRECTORIES(${SUPPRESS_WARNINGS} ${FFTW3_INCLUDE_DIR})
+ENDIF(FFTW3_FOUND)
+
+IF(Boost_FOUND)
+  INCLUDE_DIRECTORIES(${SUPPRESS_WARNINGS} ${Boost_INCLUDE_DIRS})
+ENDIF(Boost_FOUND)
+
 IF (MSVC OR MINGW)
     IF(NOT VIGRA_STATIC_LIB)
         ADD_DEFINITIONS(-DVIGRA_DLL)
@@ -96,6 +105,13 @@ IF(ZLIB_FOUND)
   TARGET_LINK_LIBRARIES(vigraimpex ${ZLIB_LIBRARIES})
 ENDIF(ZLIB_FOUND)
 
+IF(FFTW3_FOUND)
+  TARGET_LINK_LIBRARIES(vigraimpex ${FFTW3_LIBRARIES})
+ENDIF(FFTW3_FOUND)
+
+IF(Boost_FOUND)
+  TARGET_LINK_LIBRARIES(vigraimpex ${Boost_LIBRARIES})
+ENDIF(Boost_FOUND)
 
 INSTALL(TARGETS vigraimpex
         EXPORT vigra-targets
